home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / mallcrawl.swf / scripts / __Packages / mx / styles / CSSStyleDeclaration.as < prev    next >
Encoding:
Text File  |  2007-09-28  |  1.4 KB  |  52 lines

  1. class mx.styles.CSSStyleDeclaration
  2. {
  3.    var _tf;
  4.    static var classConstructed = mx.styles.CSSStyleDeclaration.classConstruct();
  5.    static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
  6.    function CSSStyleDeclaration()
  7.    {
  8.    }
  9.    function __getTextFormat(tf, bAll)
  10.    {
  11.       var _loc5_ = false;
  12.       if(this._tf != undefined)
  13.       {
  14.          var _loc2_ = undefined;
  15.          for(_loc2_ in mx.styles.StyleManager.TextFormatStyleProps)
  16.          {
  17.             if(bAll || mx.styles.StyleManager.TextFormatStyleProps[_loc2_])
  18.             {
  19.                if(tf[_loc2_] == undefined)
  20.                {
  21.                   var _loc3_ = this._tf[_loc2_];
  22.                   if(_loc3_ != undefined)
  23.                   {
  24.                      tf[_loc2_] = _loc3_;
  25.                   }
  26.                   else
  27.                   {
  28.                      _loc5_ = true;
  29.                   }
  30.                }
  31.             }
  32.          }
  33.       }
  34.       else
  35.       {
  36.          _loc5_ = true;
  37.       }
  38.       return _loc5_;
  39.    }
  40.    function getStyle(styleProp)
  41.    {
  42.       var _loc2_ = this[styleProp];
  43.       var _loc3_ = mx.styles.StyleManager.getColorName(_loc2_);
  44.       return _loc3_ != undefined ? _loc3_ : _loc2_;
  45.    }
  46.    static function classConstruct()
  47.    {
  48.       mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype,true);
  49.       return true;
  50.    }
  51. }
  52.